public class User {
    public static void main(String[] args) {}
    String unerName;

    String password;
    //登录 方法 进行验证
    public boolean login (String userNameParam, String passwordParam){
        System.out.println("传递过来的用户名：" + userNameParam);
        System.out.println("传递过来的密码" + passwordParam);
        if (userNameParam.equals("admin") && passwordParam.equals("12345678")) {
            return true;
        } else {
            return false;

        }
    }
}
